package org.hp.service.dictionary;

import org.apache.ibatis.annotations.Param;
import org.hp.bean.Case;
import org.hp.bean.Hosptial;

import java.util.List;
import java.util.Map;

public interface CaseService {
    public List<Case> queryGene(@Param("limit") Integer limit, @Param("page") Integer page, @Param("cname") String cname);
    public List<Case> queryGeneResult(@Param("limit") Integer limit, @Param("page") Integer page, @Param("cname") String cname);
    public List<Case> queryCheck(@Param("limit") Integer limit, @Param("page") Integer page, @Param("cname") String cname);

    public List<Map> queryDelGene();
    public List<Map> queryDelGeneResult();
    public List<Map> queryDelCheck();

    //添加
    public int addGene(Case c);
    public int addGeneResult(Case c);
    public int addCheck(Case c);
    //伪删除
    public int delGene(Integer cid);
    public int delGeneResult(Integer cid);
    public int delCheck(Integer cid);
    //恢复
    public int returnGene(Integer cid);
    public int returnGeneResult(Integer cid);
    public int returnCheck(Integer cid);
    //查询byID
    Case queryOneGene(Integer cid);
    Case queryOneGeneResult(Integer cid);
    Case queryOneCheck(Integer cid);
    //修改
    public int updateGene(Case c);
}
